package com.atguigu.gulimall.seckill.mapper;

import com.atguigu.gulimall.seckill.entity.SeckillGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author nicc
* @description 针对表【seckill_goods】的数据库操作Mapper
* @createDate 2022-10-27 16:38:36
* @Entity com.atguigu.gulimall.seckill.entity.SeckillGoods
*/

@Mapper
public interface SeckillGoodsMapper extends BaseMapper<SeckillGoods> {

    List<SeckillGoods> getSeckillGoodsByDate(@Param("formatDate") String formatDate);

    void updateDeduceStockCount(@Param("skuId") Long skuId,
                                @Param("i") int i);
}




